<template>
  <!--需要通过router-view标签渲染视图组件-->
  <router-view></router-view>
</template>

<script>
// import { ElMessage } from 'element-plus'
export default {
  methods: {
    open() {
      // eslint-disable-next-line no-undef
      // ElMessage('this is a message.')

      ElMessageBox.alert('This is a message', 'Title', {
        confirmButtonText: 'OK',
        callback: (action) => {
          ElMessage({
            type: 'info',
            message: `action: ${action}`
          })
        }
      })
    }
  }
}
</script>

<style lang="scss">
html,
body,
#app {
  height: 100%;
}
</style>
